#include "led.h"

void led_init(void)
{
    pinMode(LED_HALL, OUTPUT);
    pinMode(LED_KITC, OUTPUT);
    pinMode(LED_LAVE, OUTPUT);
    pinMode(LED_ROOM, OUTPUT);

    digitalWrite(LED_HALL, 0);
    digitalWrite(LED_KITC, 0);
    digitalWrite(LED_LAVE, 0);
    digitalWrite(LED_ROOM, 0);
}

void led_hall(int flag)
{
    digitalWrite(LED_HALL, flag);
}

void led_room(int flag)
{
    digitalWrite(LED_KITC, flag);
}

void led_kitc(int flag)
{
    digitalWrite(LED_LAVE, flag);
}

void led_lave(int flag)
{
    digitalWrite(LED_ROOM, flag);
}
